package com.itcast.chengma.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论comment实体类
 *
 * @Author XiaoJiangShi
 * @Date 2022/8/25 9:14
 * @Blog blog.XiaoJiangShi.net/996.mba
 * @Description: 评论comment实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_comment")
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 评论，关联tb_editor_data
     */
    private Long comment;
    /**
     * 评论的question
     */
    private Long questionId;
    /**
     * 回复的评论ID，为0则为问题的首评
     */
    private Integer replyId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建用户
     */
    private String createUser;
}

